package com.zzyl.mapper;

import com.zzyl.dto.NursingProjectPlanDto;
import com.zzyl.vo.NursingProjectPlanVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Description NursingProjectPlanMapper
 * @Author chun jiang
 * @Date 2024-07-08
 */

@Mapper
public interface NursingProjectPlanMapper {


    void add(List<NursingProjectPlanDto> projectPlans);

    void deleteByPlanId(Long id);

    @Select("select count(*) from nursing_project_plan where project_id=#{id}")
    Integer countProject(Long id);

    List<NursingProjectPlanVo> getByProjectId(Long id);
}
